Learning Objectives

After completing this lesson, you’ll be able to:

Log Message Format

The FME log file is your best friend for debugging. It tells you how long a translation took, where the time went, and how well FME used the available system resources.

The first thing to notice is that each line of the log is (in most cases) a separate message, for example:

Creating writer for format: Esri Shapefile

However, sometimes the message spans several lines, such as:

Feature Caching is ON
The workspace may run slower because features are being recorded on all output ports.
Stop At Breakpoints is ON
The workspace may run slower, even when no breakpoints are present. In particular, Bulk Mode is not supported with this enabled.

Optional Log Message Fields

There are several options to adjust what appears in the log file. To access these select Tools > FME Options > Translation:

Translation log settings

The critical setting is Log Timestamp Information. This option turns on many optional fields in the log messages. These are:

For example:

2019-04-01 12:13:55|   0.8|  0.0|INFORM|Closing native MapInfo reader

You can use these timestamps to identify slow sections of your workspace.

Note

The log file always contains timestamps, regardless of this setting.

Filtering Log Messages

A common requirement is to filter log messages so that only messages of a specific type are displayed. For example, it can help to turn off INFORM and STAT messages to make it easier to spot ERRORs and WARNs.

There are two ways to achieve this. Firstly you can filter log messages under options under Tools > FME Options > Translation:

Log Message Filter settings

These options turn each type of message on (or off) for all subsequent translation logs. If a message type is unchecked here, it will not appear in the log at all.

The second method of filtering is a set of tools in the log window itself:

Translation Log filter buttons

These tools are a way to toggle messages on and off in the log window only. They are easier to use and more flexible than using the FME Options for filtering.

Note

The Log Debug option (under FME Options) allows you to turn on debug messages in the log. These are extra log messages that do not appear by default.

Debug messages can help during debugging but are less useful in general FME use. Many messages (labeled "BADNEWS") are alarming “errors” that FME has trapped and kept to itself (like an end-of-file message). For this reason, you should not turn this option on permanently.

Also, note that the Log Debug setting persists in the workspace. If you turn that setting on and pass the workspace to another user, it retains the setting and shows debug messages when other users run the workspace!

Note

 If the log window text is too small or not stylish enough, use Tools > FME Options > Appearance > Log Font to change the font size and style.